<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>翻译</title>
    <link href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/font-awesome/5.8.2/css/all.min.css" rel="stylesheet">
    <link rel="stylesheet" href="css/style.css">
</head>

<body>
    <div class="jumbotron jumbotron-fluid">
        <div class="container text-center">
            <h1 class="display-4">翻译</h1>
            <p class="lead">中英互译</p>
        </div>
    </div>
    <div class="container">
        <div class="row justify-content-between mb-3">
            <div class="col-md-3 d-none d-md-block">
                <div class="btn-group btn-block" role="group" id="btn_if">
                    <button type="button" class="btn btn-primary" disabled="disabled">中文</button>
                    <button type="button" class="btn btn-light" disabled="disabled">英语</button>
                </div>
            </div>
            <div class="col-md-3">
                <button type="button" class="btn btn-secondary btn-block" title="交换源语言和目标语言" id="d_swap">
                    <i class="fas fa-arrows-alt-h"></i>
                </button>
            </div>
            <div class="col-md-3 d-none d-md-block">
                <div class="btn-group btn-block" role="group" id="btn_than">
                    <button type="button" class="btn btn-primary" disabled="disabled">英语</button>
                    <button type="button" class="btn btn-light" disabled="disabled">中文</button>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-6">
                <div class="form-group">
                    <textarea class="form-control" rows="5" id="d_if" placeholder="输入文字" autofocus="autofocus"></textarea>
                </div>
            </div>
            <div class="col-6">
                <div class="form-group">
                    <textarea class="form-control" rows="5" id="d_that" readonly="readonly" placeholder="翻译"></textarea>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-3">
                <button type="button" class="btn btn-primary btn-lg btn-block" id="d_result">翻译</button>
            </div>
        </div>
    </div>
    <script src="js/script.js"></script>
</body>

</html>